#ifndef STACK_
#define STACK_

#include <stdbool.h>

#define STACKMAX 50

typedef int Item;

typedef struct node {
    Item item;
    struct node * prev;
} Node;

typedef struct {
    Node * top;
    int size;
} Stack;


void InitializeStack(Stack *);
bool StackIsFull(Stack *);
bool StackIsEmpty(Stack *);
int StackCountItem(Stack *);
bool AddStackItem(Item, Stack *);
bool OutStackItem(Item *, Stack *);
void EmptyTheStack(Stack *);

#endif
